from waftools.pebble_test import clar


def build(bld):
    clar(bld,
         sources_ant_glob=(
            "src/fw/services/common/comm_session/meta_endpoint.c "
            "tests/fakes/fake_session.c "
         ),
         test_sources_ant_glob="test_meta_endpoint.c")

    clar(bld,
         sources_ant_glob=(
            "src/fw/util/rand/rand.c "
            "third_party/tinymt/TinyMT/tinymt/tinymt32.c "
            "src/fw/services/common/comm_session/session.c "
            "tests/fakes/fake_session_send_buffer.c"
         ),
         test_sources_ant_glob="test_session.c",
         override_includes=['dummy_board'])

    clar(bld,
         sources_ant_glob=(
            "src/fw/services/common/comm_session/default_kernel_sender.c "
            "src/fw/services/common/comm_session/session_send_queue.c "
            "tests/fakes/fake_queue.c "
            "tests/fakes/fake_rtc.c"
         ),
         test_sources_ant_glob="test_session_send_buffer.c")

    clar(bld,
         sources_ant_glob=(
            "src/fw/services/common/comm_session/session_send_queue.c "
         ),
         test_sources_ant_glob="test_session_send_queue.c")

    clar(bld,
         sources_ant_glob=(
            "src/fw/util/rand/rand.c "
            "third_party/tinymt/TinyMT/tinymt/tinymt32.c "
            "src/fw/services/common/comm_session/session.c "
            "src/fw/services/common/comm_session/session_receive_router.c "
            "tests/fakes/fake_session_send_buffer.c "
         ),
         test_sources_ant_glob="test_session_receive_router.c",
         override_includes=['dummy_board', 'pp_endpoints'])

    clar(bld,
         sources_ant_glob=(
            "src/fw/services/common/comm_session/session_remote_version.c "
            "tests/fakes/fake_events.c "
         ),
         test_sources_ant_glob="test_session_remote_version.c",
         override_includes=['dummy_board'])

    clar(bld,
         sources_ant_glob=(
            "src/fw/services/common/comm_session/default_kernel_receiver.c "
         ),
         test_sources_ant_glob="test_default_kernel_receiver.c",
         override_includes=['dummy_board'])


# vim:filetype=python
